package com.hahaliu.hahaliu.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName favorite
 */
@TableName(value ="favorite")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Favorite implements Serializable {
    /**
     * 收藏夹ID
     */
    @TableId(type = IdType.AUTO)
    private Integer fId;

    /**
     * 所属用户ID
     */
    private Integer uId;

    /**
     * 收藏夹类型 1默认收藏夹 2用户创建
     */
    private Integer type;

    /**
     * 对外开放 0隐藏 1公开
     */
    private Integer visible;

    /**
     * 收藏夹封面url
     */
    private String cover;

    /**
     * 标题
     */
    private String title;

    /**
     * 简介
     */
    private String description;

    /**
     * 收藏夹中视频数量
     */
    private Integer count;

    /**
     * 收藏夹创建日期时间
     */
    private LocalDateTime createDate;

    /**
     * 是否删除 0否 1已删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}